add rascript-cli command line interpreter #434
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Allows rascript files to be processed from the command line for people who prefer to use other editors (like VSCode).
It does not provide the same feature set however. There's no way to see what changes are being applied to individual achievements, and only update specific achievements. The tool effectively does an Update Local with everything in the Update column checked. It will abort if there are any errors.
The tool has one required parameter.
-i
specifies the path to the input file.-o
specifies the path to the output directory. If not provided, the current directory will be used.-a
specifies which author to use in the XXX-User.txt file. If not specified,Author
will be used. When uploaded to the server, the logged in user will be attributed to the new achievements.-q
suppresses all output-v
adds additional outputSome examples:
The first run is a successful run. 20 achievements and 1 leaderboard were written to the XXX-User.txt file, and 987 bytes were written to the XXX-Rich.txt file.
The second run illustrates an error, and reflects the same error as would be reported in the UI: